package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by 黄江华 on 2018/7/24
 */

@ApiModel
public class AddCmsChannelReq extends BaseRequest {

    @ApiModelProperty("栏目名称")
    @NotEmpty(message = "栏目名不能为空")
    @Length(max = 100, message = "栏目名不能超过100个字符")
    private String channelName;

    @ApiModelProperty("栏目访问路径")
    @NotEmpty(message = "栏目访问路径不能为空")
    @Length(max = 100, message = "栏目访问路径不能超过100个字符")
    private String channelPath;

    @ApiModelProperty("父栏目ID")
    @NotEmpty(message = "父栏目ID不能为空")
    private List<Integer> parentIdList;

    @ApiModelProperty("栏目排序")
    @NotNull(message = "栏目排序不能为空")
    @Range(min = 0, message = "栏目排序不能小于0")
    private Integer priority;

    @ApiModelProperty("流程ID")
    @NotNull(message = "流程ID不能为空")
    private Integer processDefinitionId;

    @ApiModelProperty("流程分类ID")
    @NotNull(message = "流程分类ID不能为空")
    private Integer processCategoryId;

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getChannelPath() {
        return channelPath;
    }

    public void setChannelPath(String channelPath) {
        this.channelPath = channelPath;
    }

    public List<Integer> getParentIdList() {
        return parentIdList;
    }

    public void setParentIdList(List<Integer> parentIdList) {
        this.parentIdList = parentIdList;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Integer getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(Integer processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public Integer getProcessCategoryId() {
        return processCategoryId;
    }

    public void setProcessCategoryId(Integer processCategoryId) {
        this.processCategoryId = processCategoryId;
    }
}
